php forum
php mysql forum
php mysql smarty
 
Page 1 of 6 1 2 3 4 5 6 >
Topic Options
#201267 - 11/17/03 08:39 AM [6.6 - 6.7] [beta] Statistics
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
Modification Name: Statistics

Author(s): Brett

Description: This hack displays statistics for your UBB like a separate category at the bottom of forum home and provides a detailed stats page.

Demo: Click Here

Requirements: UBB 6.6.x, 6.7.x

Download Link:
For UBB 6.6.x ONLY: http://www.ubbdev.com/ubb/upload/00006378/Statistics6.6.zip
For UBB 6.7 Beta ONLY: http://www.ubbdev.com/ubb/upload/00006378/Statistics6.7.zip

Credits: Tovok7, LK, Gizzy, Wierd Al

Instructions / Other Info: Updates:
  • ubb_statistics.cgi has been completely renovated. It takes advantage of 6.x's file structure, CI's, etc for less file usage. And a few other things, 'spiced' up. (now using strict, wink )
  • CSS Template compatible

Besides that, nothing really new. Any ideas?

Top
#201268 - 11/17/03 10:19 AM Re: [6.6 - 6.7] [beta] Statistics
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
*goes off to test*


I hope you fixed the SSI part, I just noticed it wasn't working in my version

Top
#201269 - 11/17/03 02:07 PM Re: [6.6 - 6.7] [beta] Statistics
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Thank you rockband
_________________________
- Allen wavey
- What Drives You?

Top
#201270 - 11/17/03 06:36 PM Re: [6.6 - 6.7] [beta] Statistics
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Quote:
quote:
Originally posted by Brett:
ubb_statistics.cgi has been completely renovated. It takes advantage of 6.x's file structure, CI's, etc for less file usage. And a few other things, 'spiced' up. (now using strict, wink )
Jeese Brett lol... Can I not half ass things anymore :x...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#201271 - 11/18/03 08:27 AM Re: [6.6 - 6.7] [beta] Statistics
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
everything works except the most recent topic. He used the active topics file, but those topics aren't store in order there

Top
#201272 - 11/18/03 09:51 PM Re: [6.6 - 6.7] [beta] Statistics
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
When I installed this before it was a real resource hog. Has anything been modified to change that?
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#201273 - 11/18/03 10:45 PM Re: [6.6 - 6.7] [beta] Statistics
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Code suggestions...

&TotalsLastUser: %vars_forums is your friend.

&GetLatestPost: Please use the Get* routine from ubb_lib_files, as the active topics datafile may not be in a sane state. I built the routines for a reason, you know. Also, the keys function returns in the hash order, which is never right. Use a sort and drop the reverse, as it isn't working right as-is.

&GetMemberCount: Again, please use the proper Get* routine from ubb_lib_files...

&CreateChart: Please use &DirExists.
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#201274 - 11/19/03 06:33 AM Re: [6.6 - 6.7] [beta] Statistics
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
Thanks CC laugh

Yea, i don't know what i was thinking when i didn't sort the active topics. shocked On the bright side, it's better than going into each meta file and looking at each date then opening the topic file. wink I updated the zip, updating those mentioned by Charles. The only file changed is ubb_statistics.cgi. smile

RandyM: A definite Yes. smile

Top
#201275 - 11/19/03 06:42 AM Re: [6.6 - 6.7] [beta] Statistics
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Quote:
quote:
Originally posted by RandyM:
When I installed this before it was a real resource hog. Has anything been modified to change that?
Yeh well my perl scripting sucks ok frown it's why I have Wierd Al and Brett on my coding team :x...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#201276 - 11/19/03 06:48 AM Re: [6.6 - 6.7] [beta] Statistics
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
quote:</font><hr />Originally posted by Gizzy:
<blockquote><font class="small">quote:
[qb]Originally posted by RandyM:
When I installed this before it was a real resource hog. Has anything been modified to change that?[/qb]
Yeh well my perl scripting sucks ok frown it's why I have Wierd Al and Brett on my coding team :x...<hr /></blockquote>lol, he was talking about my version tipsy


Brett, I get javascript errors and "Last post by in at on "

I don't think that's right shocked

Top
#201277 - 11/19/03 07:27 AM Re: [6.6 - 6.7] [beta] Statistics
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
Can someone else please test this? For some reason, Al, your active topics file isn't being loaded through the GetTodaysActiveTopics sub. When i loaded your active topics file, it loaded fine. I even did a mini port to 6.5 that i still have installed and it loads fine.

I dunno, maybe my sorting method is flawed... :

lol smash

Top
#201278 - 11/19/03 08:06 AM Re: [6.6 - 6.7] [beta] Statistics
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
I meant the versions going way back as well. I would love to be able to use this again. If it is less hoggish I'm going to give it a shot. Maybe CC can add more info about the resources used?
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#201279 - 11/19/03 08:32 AM Re: [6.6 - 6.7] [beta] Statistics
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
My guess is until someone turns it into a php solution, it will always be a resource hog. Just think about how many things it has to open. Every cache folder you ever had, all of those calculations that it requires. It's kinda like working without the cache if I understand correctly. Every time someone posts, it's called on the forum summary. Everytime someone views the statistics page, all of those folders are opened and closed, and calculations are made. Don't forget that this also happens anytime someone views a page that has the SSI version on it.

Brett, I don't know why my board is giving you so much trouble. First the universal headers, now this shocked

Top
#201280 - 11/19/03 09:13 AM Re: [6.6 - 6.7] [beta] Statistics
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
Quote:
quote:
Originally posted by Weird Al:
My guess is until someone turns it into a php solution, it will always be a resource hog.
What do you mean? Make a PHP Stat hack? Now THAT would be a feat in and out itself. Requiring files with hashes incompatible with php. Or are you saying turn UBB into PHP? Like PHP isn't capable of being a resource hog? *coughyabbsbcough* tipsy

Top
#201281 - 11/19/03 09:20 AM Re: [6.6 - 6.7] [beta] Statistics
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
sure, you pick the one sentence that makes no sense out of that very nice post I made wink

Top
#201282 - 11/19/03 09:26 AM Re: [6.6 - 6.7] [beta] Statistics
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
Alright, from what i got my response is that statistics page, forum page, profile page, it doesn't matter. Each time you view those pages(cached or not), files are opened, there's other way. It just depends on how many/much is opened. This hack opens about 1/4 of previous versions, resource hog less, no? wink

Top
#201283 - 11/21/03 12:25 PM Re: [6.6 - 6.7] [beta] Statistics
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
any word on a fix?

Top
#201284 - 11/22/03 12:46 AM Re: [6.6 - 6.7] [beta] Statistics
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
Quote:
quote:
Originally posted by Weird Al:
any word on a fix?
I'm slow, which fix are we waiting for?
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#201285 - 11/22/03 07:33 AM Re: [6.6 - 6.7] [beta] Statistics
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
the one for the most recent post

Top
#201286 - 11/22/03 12:57 PM Re: [6.6 - 6.7] [beta] Statistics
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
ubb_statistics.cgi needs to reference vars_wordlets_mods{stuff} instead of vars_wordlets{stuff}.
_________________________
3 time Spotlight winner.
Believe The Lie

Top
Page 1 of 6 1 2 3 4 5 6 >



Moderator:  Charles, Gizmo 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks